var service = function($resource, $q, $modal, $state){
  //景区上架
  var stateup = '/api/as/ggc/railmapdao/updateScenicareaUp';

  //景区下架
  var statedown = '/api/as/ggc/railmapdao/updateScenicareaDown';

  //景区删除
  var delflgdel = '/api/ac/ggc/railMapService/updateDelScenicArea';

  //景点上架
  var spotstateup = '/api/ac/ggc/railMapService/updateScenicspotUp';

  //景点下架
  var spotstatedown = '/api/ac/ggc/railMapService/updateScenicspotDown';

  //景点删除
  var spotdelflgdel = '/api/ac/ggc/railMapService/updateDelScenicSpot';
  return {
      stateup : function(){
          return $resource(stateup, {}, {});
      },
      statedown : function(){
          return $resource(statedown, {}, {});
      },
      delflgdel : function(){
          return $resource(delflgdel, {}, {});
      },
      spotstateup : function(){
          return $resource(spotstateup, {}, {});
      },
      spotstatedown : function(){
          return $resource(spotstatedown, {}, {});
      },
      spotdelflgdel : function(){
          return $resource(spotdelflgdel, {}, {});
      }
  };
};

module.exports = service;
  